import { defineConfig } from 'vitepress'

// https://vitepress.dev/reference/site-config
export default defineConfig({
  base: '/travelWeb/',
  assetsDir: 'static',
  title: "评行",
  description: "评行: 旅行攻略，地图标记，账单记录，行程分享",
  vite: {
    // Vite 配置选项
  },
  // 代码块主题
  markdown: {
    theme: {
      light: "vitesse-light",
      dark: "vitesse-dark",
    },
  },
  themeConfig: {
    // https://vitepress.dev/reference/default-theme-config
    logo: '/assets/logo.png',
    siteTitle: '评行',
    nav: [
      { text: '首页', link: '/' },
      { text: '地图', link: '/map' }
    ],

    sidebar: [
      {
        text: '首页',
        items: [
          { text: '主题换肤', link: '/markdown-examples' },
          { text: 'Ai对话', link: '/markdown-examples' },
        ]
      },
      {
        text: '地图',
        items: [
          { text: '点位标记', link: '/markdown-examples' },
          { text: '点位操作', link: '/api-examples' }
        ]
      }
    ],

    socialLinks: [
      { icon: 'github', link: 'https://gitee.com/tb3706666/travelWebPress' },
      // {
      //   icon: {
      //         svg: 'xxxxxx',
      //   },
      //   link: "https://juejin.cn/user/1469381099657902",
      // },
    ],
    footer: {
      message: '评行',
      copyright: '旅行攻略，地图标记，账单记录，行程分享',
    }
  }
})
